package com.lzc.tlmail.tlmailproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzc.common.utils.PageUtils;
import com.lzc.tlmail.tlmailproduct.entity.CategoryEntity;
import com.lzc.tlmail.tlmailproduct.vo.Level2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lzc
 * @email 1029669636@gmail.com
 * @date 2020-07-25 21:23:58
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有种类并分类
     * @return
     */
    List<CategoryEntity> queryAllListWithTree();

    /**
     * 批量删除
     * @param asList
     */
    void removeMenuByIds(List<Long> asList);

    /**
     * 根据id得到所有id
     */
    Long[]  getPathsById(Long id);

    void updateDetailsById(CategoryEntity category);

    List<CategoryEntity> queryLevel1Category();

    /**
     * 首页获取所有分类
     * @return
     */
    Map<String, List<Level2Vo>> getLevel2Category();
}

